package com.yaorange.medical.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 呼吸机历史数据表
 * @TableName bs_breath_history
 */
@Data
public class BsBreathHistory implements Serializable {
    /**
     *
     */
    private String id;

    /**
     * 实时数据表主键
     */
    private String realId;

    /**
     * 采集时间
     */
    private Date requestTime;

    /**
     * 出厂号
     */
    private String factoryId;

    /**
     * 设备编号
     */
    private String deviceId;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 设备购买日期
     */
    private Date deviceBuyTime;

    /**
     * 设备所属部门ID
     */
    private String deviceDeptId;

    /**
     * 设备所属部门
     */
    private String deviceDept;

    /**
     * 设备类型
     */
    private String deviceType;

    /**
     * 当前区域ID
     */
    private String areaId;

    /**
     * 当前区域
     */
    private String areaName;

    /**
     * 当前部门ID
     */
    private String departmentId;

    /**
     * 当前部门
     */
    private String departmentName;

    /**
     * MAC地址
     */
    private String mac;

    /**
     * 更新频率
     */
    private String inquireTime;

    /**
     * 波特率
     */
    private String baudrate;

    /**
     * 设备时间
     */
    private String devTime;

    /**
     * WIFI名称
     */
    private String ssid;

    /**
     * WIFI信号强度
     */
    private String rssi;

    /**
     * IP地址
     */
    private String ip;

    /**
     * 潮气量
     */
    private String tidalVolume;

    /**
     * 模式设置
     */
    private String modeSetting;

    /**
     * 呼吸频率
     */
    private String breathRate;

    /**
     * 氧浓度
     */
    private String fio2;

    /**
     * 通气类型
     */
    private String ventilationType;

    /**
     * 吸气比
     */
    private String inspiratoryRate;

    /**
     * 吸气流速
     */
    private String peakFlow;

    /**
     * 是否报警
     */
    private Integer alarmFlag;

    /**
     * 原始数据
     */
    private String breathData;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建日期
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新日期
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BsBreathHistory other = (BsBreathHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRealId() == null ? other.getRealId() == null : this.getRealId().equals(other.getRealId()))
            && (this.getRequestTime() == null ? other.getRequestTime() == null : this.getRequestTime().equals(other.getRequestTime()))
            && (this.getFactoryId() == null ? other.getFactoryId() == null : this.getFactoryId().equals(other.getFactoryId()))
            && (this.getDeviceId() == null ? other.getDeviceId() == null : this.getDeviceId().equals(other.getDeviceId()))
            && (this.getDeviceName() == null ? other.getDeviceName() == null : this.getDeviceName().equals(other.getDeviceName()))
            && (this.getDeviceBuyTime() == null ? other.getDeviceBuyTime() == null : this.getDeviceBuyTime().equals(other.getDeviceBuyTime()))
            && (this.getDeviceDeptId() == null ? other.getDeviceDeptId() == null : this.getDeviceDeptId().equals(other.getDeviceDeptId()))
            && (this.getDeviceDept() == null ? other.getDeviceDept() == null : this.getDeviceDept().equals(other.getDeviceDept()))
            && (this.getDeviceType() == null ? other.getDeviceType() == null : this.getDeviceType().equals(other.getDeviceType()))
            && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(other.getAreaId()))
            && (this.getAreaName() == null ? other.getAreaName() == null : this.getAreaName().equals(other.getAreaName()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getDepartmentName() == null ? other.getDepartmentName() == null : this.getDepartmentName().equals(other.getDepartmentName()))
            && (this.getMac() == null ? other.getMac() == null : this.getMac().equals(other.getMac()))
            && (this.getInquireTime() == null ? other.getInquireTime() == null : this.getInquireTime().equals(other.getInquireTime()))
            && (this.getBaudrate() == null ? other.getBaudrate() == null : this.getBaudrate().equals(other.getBaudrate()))
            && (this.getDevTime() == null ? other.getDevTime() == null : this.getDevTime().equals(other.getDevTime()))
            && (this.getSsid() == null ? other.getSsid() == null : this.getSsid().equals(other.getSsid()))
            && (this.getRssi() == null ? other.getRssi() == null : this.getRssi().equals(other.getRssi()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getTidalVolume() == null ? other.getTidalVolume() == null : this.getTidalVolume().equals(other.getTidalVolume()))
            && (this.getModeSetting() == null ? other.getModeSetting() == null : this.getModeSetting().equals(other.getModeSetting()))
            && (this.getBreathRate() == null ? other.getBreathRate() == null : this.getBreathRate().equals(other.getBreathRate()))
            && (this.getFio2() == null ? other.getFio2() == null : this.getFio2().equals(other.getFio2()))
            && (this.getVentilationType() == null ? other.getVentilationType() == null : this.getVentilationType().equals(other.getVentilationType()))
            && (this.getInspiratoryRate() == null ? other.getInspiratoryRate() == null : this.getInspiratoryRate().equals(other.getInspiratoryRate()))
            && (this.getPeakFlow() == null ? other.getPeakFlow() == null : this.getPeakFlow().equals(other.getPeakFlow()))
            && (this.getAlarmFlag() == null ? other.getAlarmFlag() == null : this.getAlarmFlag().equals(other.getAlarmFlag()))
            && (this.getBreathData() == null ? other.getBreathData() == null : this.getBreathData().equals(other.getBreathData()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRealId() == null) ? 0 : getRealId().hashCode());
        result = prime * result + ((getRequestTime() == null) ? 0 : getRequestTime().hashCode());
        result = prime * result + ((getFactoryId() == null) ? 0 : getFactoryId().hashCode());
        result = prime * result + ((getDeviceId() == null) ? 0 : getDeviceId().hashCode());
        result = prime * result + ((getDeviceName() == null) ? 0 : getDeviceName().hashCode());
        result = prime * result + ((getDeviceBuyTime() == null) ? 0 : getDeviceBuyTime().hashCode());
        result = prime * result + ((getDeviceDeptId() == null) ? 0 : getDeviceDeptId().hashCode());
        result = prime * result + ((getDeviceDept() == null) ? 0 : getDeviceDept().hashCode());
        result = prime * result + ((getDeviceType() == null) ? 0 : getDeviceType().hashCode());
        result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
        result = prime * result + ((getAreaName() == null) ? 0 : getAreaName().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getDepartmentName() == null) ? 0 : getDepartmentName().hashCode());
        result = prime * result + ((getMac() == null) ? 0 : getMac().hashCode());
        result = prime * result + ((getInquireTime() == null) ? 0 : getInquireTime().hashCode());
        result = prime * result + ((getBaudrate() == null) ? 0 : getBaudrate().hashCode());
        result = prime * result + ((getDevTime() == null) ? 0 : getDevTime().hashCode());
        result = prime * result + ((getSsid() == null) ? 0 : getSsid().hashCode());
        result = prime * result + ((getRssi() == null) ? 0 : getRssi().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getTidalVolume() == null) ? 0 : getTidalVolume().hashCode());
        result = prime * result + ((getModeSetting() == null) ? 0 : getModeSetting().hashCode());
        result = prime * result + ((getBreathRate() == null) ? 0 : getBreathRate().hashCode());
        result = prime * result + ((getFio2() == null) ? 0 : getFio2().hashCode());
        result = prime * result + ((getVentilationType() == null) ? 0 : getVentilationType().hashCode());
        result = prime * result + ((getInspiratoryRate() == null) ? 0 : getInspiratoryRate().hashCode());
        result = prime * result + ((getPeakFlow() == null) ? 0 : getPeakFlow().hashCode());
        result = prime * result + ((getAlarmFlag() == null) ? 0 : getAlarmFlag().hashCode());
        result = prime * result + ((getBreathData() == null) ? 0 : getBreathData().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", realId=").append(realId);
        sb.append(", requestTime=").append(requestTime);
        sb.append(", factoryId=").append(factoryId);
        sb.append(", deviceId=").append(deviceId);
        sb.append(", deviceName=").append(deviceName);
        sb.append(", deviceBuyTime=").append(deviceBuyTime);
        sb.append(", deviceDeptId=").append(deviceDeptId);
        sb.append(", deviceDept=").append(deviceDept);
        sb.append(", deviceType=").append(deviceType);
        sb.append(", areaId=").append(areaId);
        sb.append(", areaName=").append(areaName);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", departmentName=").append(departmentName);
        sb.append(", mac=").append(mac);
        sb.append(", inquireTime=").append(inquireTime);
        sb.append(", baudrate=").append(baudrate);
        sb.append(", devTime=").append(devTime);
        sb.append(", ssid=").append(ssid);
        sb.append(", rssi=").append(rssi);
        sb.append(", ip=").append(ip);
        sb.append(", tidalVolume=").append(tidalVolume);
        sb.append(", modeSetting=").append(modeSetting);
        sb.append(", breathRate=").append(breathRate);
        sb.append(", fio2=").append(fio2);
        sb.append(", ventilationType=").append(ventilationType);
        sb.append(", inspiratoryRate=").append(inspiratoryRate);
        sb.append(", peakFlow=").append(peakFlow);
        sb.append(", alarmFlag=").append(alarmFlag);
        sb.append(", breathData=").append(breathData);
        sb.append(", createBy=").append(createBy);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateBy=").append(updateBy);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
